<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset='UTF-8'>
    <title>
        购物车
    </title>
    <link href="/static/css/company.css" rel="stylesheet" media="all">
</head>
<body bgcolor="#5f9ea0">
<div class="wrap">
    <div class="login-wrap">
        <center>
            <a href="/index">回到商城</a><br><br><br>

            <div style="overflow-x: auto; overflow-y: auto; height: 400px; width:600px;">
                <table border="2" bgcolor="#ffe4e1" align="center" height="100px" width="500px">
                    <caption>个人购物车</caption>
                    <tr>
                        <th>商品编号</th>
                        <th>购买数量</th>
                        <th>设置数量为</th>
                        <th>操作内容</th>
                    </tr>
                    <tr th:each="cart:${cartList}">
                        <form th:action="@{'/update'+'/'+${cart.contentId}}" method='get'>
                            <td th:text="${cart.contentId}"></td>
                            <td th:text="${cart.amount}"></td>
                            <td><input type="text" name="buyNumber"></td>
                            <th>
                                <input type="submit" value="修改" ONCLICK="alert('修改成功')">
                                <input type="submit" value="删除" ONCLICK="alert('删除成功')">
                            </th>
                        </form>
                    </tr>
                </table>
            </div>
            <a href="/lookOrder">查看交易记录</a>

            <a href="/gotoPay">去支付</a>
        </center>
    </div>
</div>
</body>
</html>